const state = {
  image: "",
  roleId: 0,
  ip: "",
  roleName: "",
  username: "",
  time: "",
  mobile: "",
  email: "",
  createTime: "",
  sex: ""
}
const mutations = {
  changeUserInfo: (state, data) => {
    state["image"] = data["image"];
    state["username"] = data["username"];
    state["roleName"] = data["roleName"];
    state["time"] = data["time"];
    state["ip"] = data["ip"];
    state["time"] = data["time"];
    state["mobile"] = data["mobile"];
    state["email"] = data["email"];
    state["createTime"] = data["createTime"];
    state["sex"] = data["sex"];
  }
}
const actions = {
  setUserInfo({commit}, data) {
    commit('changeUserInfo', data)
  }
}
export default {
  namespaced: true,
  state,
  mutations,
  actions,
}
